package com.midcode;
import java.util.*;

public class midCode {
	public static LinkedList<midCodeEntry> codes = new LinkedList<midCodeEntry>();
	public static int codeptr = 0;
	private static midCode _instance;
	public static midCode getInstance(){
		if(_instance == null){
			_instance = new midCode();
		}
		return _instance;
	}
	public void add(String label,String optr,String arg1,String arg2,String result){
		midCodeEntry e = new midCodeEntry(label,optr,arg1,arg2,result);
		codes.add(e);
		codeptr++;
	}
}
